package cn.kgc.kgde.bookstore.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class CartDTO {
    //Cart
    @ApiModelProperty("购物车id")
    @TableId(value = "cartId", type = IdType.AUTO)
    private Long cartId;

    @ApiModelProperty("用户id(谁的购物车)")
    private String userCode;

    //CartItem
    @ApiModelProperty("购物车详情id")
//    @TableId(value = "cartItemId", type = IdType.AUTO)
    private Long cartItemId;

//    @ApiModelProperty("购物车id")
//    private Long cartId;

    @ApiModelProperty("图书id")
    private Long bookId;

    @ApiModelProperty("数量")
    private Integer quantity;

    private Double cost;

    //Book
//    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("书名")
    private String bookName;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("出版社")
    private String press;

    @ApiModelProperty("价格")
    private Double price;

    @ApiModelProperty("图片")
    private String bookPic;


}
